package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：工程
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    工程
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name="T_SYS_GC")
@Where(clause = "deleted!='1'")
public class Gc extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqGc", allocationSize = 1, sequenceName = "SEQ_SYS_GC")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqGc")
    private Long id;

    /**
     * 名称
     */
    private String mc;

    /**
     * 企业机构
     */
    @ManyToOne
    @JoinColumn(name="QYJG_ID")
    @Where(clause = "deleted!='1'")
    @NotFound(action= NotFoundAction.IGNORE)
    private Qyjg qyjg;

    /**
     * 送货地址
     */
    private String shdz;

    /**
     * 联系电话
     */
    private String lxdh;

    /**
     * 配送要求
     */
    private String psyq;

    /**
     * 是否竣工
     */
    private Boolean sfjg;

    /**
     * 备注
     */
    private String bz;

    /**
     * 运费
     */
    private Float yf;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    public Qyjg getQyjg() {
        return qyjg;
    }

    public void setQyjg(Qyjg qyjg) {
        this.qyjg = qyjg;
    }

    public String getShdz() {
        return shdz;
    }

    public void setShdz(String shdz) {
        this.shdz = shdz;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    public String getPsyq() {
        return psyq;
    }

    public void setPsyq(String psyq) {
        this.psyq = psyq;
    }

    public Boolean getSfjg() {
        return sfjg;
    }

    public void setSfjg(Boolean sfjg) {
        this.sfjg = sfjg;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Float getYf() {
        return yf;
    }

    public void setYf(Float yf) {
        this.yf = yf;
    }
}
